<script setup lang="ts">
import { ref } from 'vue';
const counter = ref<number>(0)
</script>
<template>
  <div>
    <div>{{ counter }}</div>
    <button @click="counter++">加一</button>
  </div>
</template>